<template>
  <div class="container">
    <el-form ref="form" :model="form" label-width="80px">
      <el-row :gutter="6">
        <el-col :span="6">
          <el-form-item label="类型编号">
            <el-input v-model="form.code" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="6">
        <el-col :span="6">
          <el-form-item label="类型标题">
            <el-input v-model="form.title" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="6">
        <el-col :span="6">
          <el-form-item label="类型名称">
            <el-input v-model="form.typeName" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="24">
        <el-col :span="24">
          <el-form-item label="状态">
            <el-switch v-model="form.status" active-value="1" inactive-value="0" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="12">
        <el-col :span="12">
          <el-form-item label="备注">
            <el-input v-model="form.remarks" type="textarea" :rows="10" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-form-item>
        <el-button type="primary" @click="save">保存</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'AddFileType',
  data() {
    return {
      form: {
        code: '',
        title: '',
        typeName: '',
        status: '',
        remarks: ''
      }
    }
  },
  methods: {
    save() {
      console.log(this.form)
    }
  }
}
</script>

<style scoped>

</style>
